export function setCookie(c_name, c_pwd, exdays) {
    var exdate = new Date(); //获取时间
    exdate.setTime(exdate.getTime() + 15*24 * 60 * 60 * 1000 * exdays); //保存15天
    //字符串拼接cookie
    window.document.cookie = "username" + "=" + c_name + ";path=/;expires=" + exdate.toGMTString();
    window.document.cookie = "password" + "=" + c_pwd + ";path=/;expires=" + exdate.toGMTString();
}
export function clearCookie() {
    this.setCookie("", "", -1); //修改2值都为空，天数为负1天就好了
}
